<?php

include_once('classConnection.php');
include_once("../model/ParamInOut.php");

$strSql = "select * from DanhMuc Where Xoa=0";
$db = new db();
$db1= $db->Execute($strSql);

$menuArr = Array();
while($row_menu = mysql_fetch_assoc($db1))
		{
			/*$objMenu = new MenuObject();
			echo $row_menu['IdDanhMuc'];
			echo $row_menu['TenDanhMuc'];
			$objMenu->ThuTu = $row_menu['ThuTu'];
			*/
			$objMenu = new MenuObject();
			$objMenu->IdDanhMuc = $row_menu['IdDanhMuc'];
			$objMenu->TenDanhMuc = $row_menu['TenDanhMuc'];
			$objMenu->ThuTu = $row_menu['ThuTu'];
			$menuArr[] = $objMenu;
			//$menuList[] = $objMenu;
		}
		for($i =0;$i<count($menuArr);$i++)
		{
			$obj = new MenuObject();
			$obj = $menuArr[$i];
			echo $obj->IdDanhMuc;
			echo $obj->TenDanhMuc;
		}
		echo "success"+count($menuArr);


?>